var world = new Array();

// game window (containing frames to actual game)
if(window.location.toString().match(/http:\/\/.*runescape\.com\/game\.ws.*/)) {
  $(document).ready(function() {	
  	// warn on leave page
  	if(get_bool("leave-warning")) {
	    window.onbeforeunload = function(e) {
    		return "Really exit?";
    	}
    };
  });
	
};

// actual game + header bars
if(window.location.toString().match(/http:\/\/world[0-9]{1,3}\.runescape\.com/)) {
	
  $(document).ready(function() {
      // remove title bar
      console.log(get_bool("title-bar"));
    	if(get_bool("title-bar"))
		    $('#menubox').css('display','none');
	
    	// remove ad bar
    	if(get_bool("ad-bar"))
  		  $('#tb').css('display','none');

      if(get_bool("focus"))
        $('#game').focus();
  });	
};
